package org.wotou.authority.domain.wtuser;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户
 *
 * @author zhangQ
 * @date 2017/12/18
 */
@Entity
@Table(name = "wt_user")
public class wtuserDO implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    private String id;
    /**
     * 用户名
     */
    private String userName;
    /**
     * 密码
     */
    private String password;
    /**
     * 性别 0男 1女
     */
    private String sex;
    /**
     * 电子邮件
     */
    private String email;
    /**
     * 描述
     */
    private String description;
    /**
     * 添加时间
     */
    private Date addDate;
    /**
     * 最后登录Ip
     */
    private String lastLoginIp;
    /**
     * 最后登陆时间
     */
    private Date lastLoginTime;
    /**
     * 最后退出事件
     */
    private Date laseLoginOutTime;
    /**
     * 锁定状态
     */
    private String locked;
    /**
     * 审核状态
     */
    private String checked;
    /**
     * STATE_DISABLE 关闭 STATE_ENABLE 开启
     */
    private String state;
    /**
     * 商户Id
     */
    private String orgId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getAddDate() {
        return addDate;
    }

    public void setAddDate(Date addDate) {
        this.addDate = addDate;
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public Date getLaseLoginOutTime() {
        return laseLoginOutTime;
    }

    public void setLaseLoginOutTime(Date laseLoginOutTime) {
        this.laseLoginOutTime = laseLoginOutTime;
    }

    public String getLocked() {
        return locked;
    }

    public void setLocked(String locked) {
        this.locked = locked;
    }

    public String getChecked() {
        return checked;
    }

    public void setChecked(String checked) {
        this.checked = checked;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }
}
